package com.houtai.bean.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@ApiModel(value="密码登陆所需参数", description="密码登陆所需参数")
public class UserPassLoginDto {

    @NotEmpty(message = "请输入正确手机号码")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "请输入正确手机号码")
    @ApiModelProperty(value="手机号码", name="phone_no")
    private String phone_no;


    @NotEmpty(message = "请输入密码")
    @ApiModelProperty(value="密码（MD5加密后传过来  123456的值是e10adc3949ba59abbe56e057f20f883e）", name="user_pass")
    private String  user_pass;


    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public String getUser_pass() {
        return user_pass;
    }

    public void setUser_pass(String user_pass) {
        this.user_pass = user_pass;
    }
}
